﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UMLTouch.Core.Entities
{
    public class SegmentIntersection : System.IEquatable<SegmentIntersection>
    {
        public Segment Segment { get; set; }
        public IntersectionType IntersectionType { get; set; }       

        #region IEquatable<SegmentIntersection> Members

        bool IEquatable<SegmentIntersection>.Equals(SegmentIntersection other)
        {
            return Segment.Equals(other.Segment) && IntersectionType == other.IntersectionType;
        }

        public override int GetHashCode()
        {
            return 1;
        }

        #endregion
    }
}
